﻿@model IEnumerable<GameSchoolApplication.Models.Announcement>

@{
    ViewBag.Title = "Skilaboð";
	Layout = "~/Views/Shared/_StudentLayout.cshtml";
}
<section>
<h2>Listi yfir skilaboð</h2>

<table class="IndexTable">
    <tr>
        <th>
            Skilaboð
        </th>
        <th>
            Leikur
        </th>
        <th>
            Dagsetning skráningar
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Content)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Game.Title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DateTime)
        </td>
    </tr>
}

</table>
</section>